<template>
  <div>
    <div class="box">
      <div class="green">
        <i class="fish"></i>
        <h3>花落Music</h3>
      </div>
    
    </div>
    <div class="search">
      <i class="fa fa-search" aria-hidden="true"></i>
      <input type="text" placeholder="搜索" @focus="$router.push('/search')" />
    </div>
  </div>
</template>
<style lang="less" scoped>
.box {
  padding-bottom: 50px;
}
.green {
  background-color: #040e29;
  width: 100%;
  // padding: 7px 0;
  height: 55px;
  top: 0;
  left: 0;
  display: flex;
  position: absolute;
  font-weight: bold;
  color: #dcffe8;
  font-size: 30px;
  i.fish {
    width: 48px;
    height: 48px;
    margin: auto 5px;
    line-height: 55px;
    background: url("~@/assets/cy音乐.png") no-repeat;
    background-size: contain;
    display: block;
  }
  h3 {
    line-height: 55px;
    font-size: 18px;
  }
}

.search {
  margin: 5px 25px;
  border-radius: 40px;
  padding: 5px 50px 5px;
  position: relative;
  background-color: #edeff2;
  i {
    font-size: 18px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a4a7a8;
  }
  input {
    height: 25px;
    font-size: 14px;
    background-color: transparent;
    border: none;
    outline: none;
    color: #333;
  }
}
</style>